﻿using System;
using System.Collections.Generic;
using System.Text;
using Manager.App_Code.DTO;
using System.Data;

namespace Manager.App_Code.IDAL
{
    interface IPhong
    {
        List<PhongDTO> GetListPhong();

        PhongDTO GetPhongByID(string MaPhong);

        List<PhongDTO> GetAllPhongByMaTang(int Matang);

        List<PhongDTO> GetPhongByState(int TinhTrang);

        List<PhongDTO> GetPhongByLoaiPhongAndState(string MaLoaiPhong, int TinhTrang);
 
        bool InsertPhong(PhongDTO ph);

        bool UpdatePhong(PhongDTO ph);

        bool DeletePhong(PhongDTO ph);

        PhongDTO ConvertObjectDataRowToPhongDTODataRow(DataRow dr);
 

    }
}
